#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

vector<int> twoSum(vector<int>& nums, int target) {
    int i=0;
    int j=0;
    int len = nums.size();
    vector<int> ret = {0,0};
    for (i=0; i< len-1; ++i) {
        for (j=i+1; j<len; ++j) {
            if(nums[i]+nums[j] == target) {
                ret[0] = i;
                ret[1] = j;
                break;
            }
        }
    }
    return ret;
    
}

int main() {
    vector<int> ret = {-1,-1};
    vector<int> nums = {2,7,11,15};
    ret = twoSum(nums, 9);
    cout << ret[0] << "," << ret[1] << endl;


    return 0;
}

